<template>
  <div class="studio">
    <!-- header -->
    <Head />
    <Banner />
    <Nav />
    <!-- /header -->

    <div class="main">
      <div class="middle">
        <!-- 导航栏 -->
        <SideBar></SideBar>
        <!-- 导航栏 -->
        <!-- 工作室概况 -->
        <div class="block">
          <!-- 标题 -->
          <div class="title">
            <h3>工作室概况</h3>
          </div>
          <!-- 内容 -->
          <div class="content">
            <h3>{{gzsjs.title}}</h3>
            <p>
              <span>{{gzsjs.fbsj | dateFormat}}</span>
              <span style="padding-left: 20px;">作者：</span>
              <span style="padding-right: 20px;">{{gzsjs.adduser}}</span>
              <span>浏览：</span>
              <span>{{gzsjs.djs}}</span>
            </p>
            <div class="detailb">
              <p v-html="gzsjs.gzsdesc">{{gzsjs.gzsdesc}}</p>
              <!-- <p> -->
              <b>地址：</b>
              {{gzsjs.address}}
              <!-- </p> -->
              <br />
              <!-- <p> -->
              <b>联系电话：</b>
              {{gzsjs.lxdh}}
              <!-- </p> -->
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- footer -->
    <Footer></Footer>
    <!-- /footer -->
  </div>
</template>

<script>
import Head from "@/components/Head.vue";
import Banner from "@/components/Banner.vue";
import SideBar from "@/components/SideBar.vue";
import Nav from "@/components/Nav.vue";
import Footer from "@/components/Footer.vue";
export default {
  name: "studioIntro",
  components: {
    Head,
    Banner,
    Nav,
    Footer,
    SideBar,
  },
  data() {
    return {
      gzsjs: [], //工作室概况
    };
  },
  created() {
    this.getGzsjs();
  },
  methods: {
    //首页接口
    getGzsjs() {
      this.$axios
        .get("TCM/Gzsjs")
        .then((res) => {
          if (res.status == 200) {
            this.gzsjs = res.data;
          }
        })
        .catch((err) => {
          console.log(err);
        });
    },
  },
};
</script>

<style lang="less" scoped>
@media screen and (max-width: 1200px) {
  .studio .main {
    margin: 0 !important;
  }
}
.studio {
  background: url("../assets/image/diwen.jpg") repeat-y;
  // 通知道公告
  .main {
    margin: 0 auto;
    margin: 0 25% 0;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
    .middle {
      height: 100%;
      padding: 0 10px 10px;
      background-color: #ffffff;
      box-sizing: border-box;
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
      .block {
        flex: 1;
        margin-left: 20px;
        background-color: #ffffff;
        border: 0.5px solid #ebe4d9;
        border-top: none;
        .content {
          padding: 20px 20px 30px;
          text-align: center;
          h3 {
            font-size: 24px;
            text-align: center;
            color: #2c3e50;
            margin-bottom: 20px;
          }
          span {
            font-size: 16px;
          }
        }
      }
    }
  }
}
</style>
<style lang="less">
.detailb {
  text-align: left;
  padding-top: 20px;
  float: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 30px;
  // margin-top: 0;
  margin-bottom: 60px;
  img {
    width: 100%;
    padding-top: 15px;
    display: block;
  }
  p {
    margin-top: 0;
    text-indent: 2em;
    font-size: 16px;
  }
}
</style>